using System;

namespace MLSharp.Filters
{
	/// <summary>
	/// Exception that is thrown if a filter cannot be loaded.
	/// </summary>
	public class FilterNotFoundException : Exception
	{
		/// <summary>
		/// The filter that failed to load.
		/// </summary>
		public string FilterName { get; private set; }

		/// <summary>
		/// Creates the exception.
		/// </summary>
		/// <param name="filterName"></param>
		public FilterNotFoundException(string filterName) : base("Filter not found: " + filterName)
		{
			FilterName = filterName;
		}
	}
}